Skip to content

feat: object properties as data #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 6, 2024
Merged

feat: object properties as data #64

merged 5 commits into from
Aug 6, 2024

Conversation

jbee
Copy link
Collaborator

@jbee jbee commented Aug 5, 2024

Summary

WIP

  • adds JsonObject#properties that gives a list of object properties which is extracted from an interface extending JsonObject
  • adds JsonValue#as with additional callback function (low level support that allows to extract the properties by observing the calls)

Changes

  • object validation uses the new properties method as basis
  • object validation bound changed to JsonObject (from JsonAbstractObject)
  • typed access (abstract methods support) got packaged into a Access object internally. This reduced the footprint as this is an object that is shared for all views created from the same root

@jbee jbee self-assigned this Aug 5, 2024
@jbee jbee changed the title eat: object properties as data feat: object properties as data Aug 5, 2024
@jbee jbee marked this pull request as ready for review August 6, 2024 11:50
@jbee jbee merged commit ce68c5a into dhis2:main Aug 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant